package com.university.vo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Companyaccount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "companyaccount", catalog = "university")

public class Companyaccount implements java.io.Serializable {

	// Fields

	private Integer companyAccountId;
	private Company company;
	private String companyAccountUsername;
	private String companyAccountPassword;
	private Double companyAccountBalance;
	private String companyAccountPhone;
	private String companyAccountPeopleName;
	private String companyAccountCompact;
	private Integer companyAccountDownloadResidueCount;
	private Integer companyAccountDownloadCount;
	private Integer companyAccountPostResidueCouture;
	private Integer companyAccountPostCouture;
	private Timestamp companyAccountBeginTime;
	private Timestamp companyAccountEndTime;

	// Constructors

	/** default constructor */
	public Companyaccount() {
	}

	@Override
	public String toString() {
		return "Companyaccount [companyAccountId=" + companyAccountId + ", company=" + company
				+ ", companyAccountUsername=" + companyAccountUsername + ", companyAccountPassword="
				+ companyAccountPassword + ", companyAccountBalance=" + companyAccountBalance + ", companyAccountPhone="
				+ companyAccountPhone + ", companyAccountPeopleName=" + companyAccountPeopleName
				+ ", companyAccountCompact=" + companyAccountCompact + ", companyAccountDownloadResidueCount="
				+ companyAccountDownloadResidueCount + ", companyAccountDownloadCount=" + companyAccountDownloadCount
				+ ", companyAccountPostResidueCouture=" + companyAccountPostResidueCouture
				+ ", companyAccountPostCouture=" + companyAccountPostCouture + ", companyAccountBeginTime="
				+ companyAccountBeginTime + ", companyAccountEndTime=" + companyAccountEndTime + "]";
	}

	/** full constructor */
	public Companyaccount(Company company, String companyAccountUsername, String companyAccountPassword,
			Double companyAccountBalance, String companyAccountPhone, String companyAccountPeopleName,
			String companyAccountCompact, Integer companyAccountDownloadResidueCount,
			Integer companyAccountDownloadCount, Integer companyAccountPostResidueCouture,
			Integer companyAccountPostCouture, Timestamp companyAccountBeginTime, Timestamp companyAccountEndTime) {
		this.company = company;
		this.companyAccountUsername = companyAccountUsername;
		this.companyAccountPassword = companyAccountPassword;
		this.companyAccountBalance = companyAccountBalance;
		this.companyAccountPhone = companyAccountPhone;
		this.companyAccountPeopleName = companyAccountPeopleName;
		this.companyAccountCompact = companyAccountCompact;
		this.companyAccountDownloadResidueCount = companyAccountDownloadResidueCount;
		this.companyAccountDownloadCount = companyAccountDownloadCount;
		this.companyAccountPostResidueCouture = companyAccountPostResidueCouture;
		this.companyAccountPostCouture = companyAccountPostCouture;
		this.companyAccountBeginTime = companyAccountBeginTime;
		this.companyAccountEndTime = companyAccountEndTime;
	}

	// Property accessors
	@Id
	@GeneratedValue

	@Column(name = "companyAccount_id", unique = true, nullable = false)

	public Integer getCompanyAccountId() {
		return this.companyAccountId;
	}

	public void setCompanyAccountId(Integer companyAccountId) {
		this.companyAccountId = companyAccountId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "companyAccount_companyId")

	public Company getCompany() {
		return this.company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	@Column(name = "companyAccount_username", length = 20)

	public String getCompanyAccountUsername() {
		return this.companyAccountUsername;
	}

	public void setCompanyAccountUsername(String companyAccountUsername) {
		this.companyAccountUsername = companyAccountUsername;
	}

	@Column(name = "companyAccount_password", length = 20)

	public String getCompanyAccountPassword() {
		return this.companyAccountPassword;
	}

	public void setCompanyAccountPassword(String companyAccountPassword) {
		this.companyAccountPassword = companyAccountPassword;
	}

	@Column(name = "companyAccount_balance", precision = 22, scale = 0)

	public Double getCompanyAccountBalance() {
		return this.companyAccountBalance;
	}

	public void setCompanyAccountBalance(Double companyAccountBalance) {
		this.companyAccountBalance = companyAccountBalance;
	}

	@Column(name = "companyAccount_phone", length = 20)

	public String getCompanyAccountPhone() {
		return this.companyAccountPhone;
	}

	public void setCompanyAccountPhone(String companyAccountPhone) {
		this.companyAccountPhone = companyAccountPhone;
	}

	@Column(name = "companyAccount_peopleName", length = 20)

	public String getCompanyAccountPeopleName() {
		return this.companyAccountPeopleName;
	}

	public void setCompanyAccountPeopleName(String companyAccountPeopleName) {
		this.companyAccountPeopleName = companyAccountPeopleName;
	}

	@Column(name = "companyAccount_compact", length = 50)

	public String getCompanyAccountCompact() {
		return this.companyAccountCompact;
	}

	public void setCompanyAccountCompact(String companyAccountCompact) {
		this.companyAccountCompact = companyAccountCompact;
	}

	@Column(name = "companyAccount_downloadResidueCount")

	public Integer getCompanyAccountDownloadResidueCount() {
		return this.companyAccountDownloadResidueCount;
	}

	public void setCompanyAccountDownloadResidueCount(Integer companyAccountDownloadResidueCount) {
		this.companyAccountDownloadResidueCount = companyAccountDownloadResidueCount;
	}

	@Column(name = "companyAccount_downloadCount")

	public Integer getCompanyAccountDownloadCount() {
		return this.companyAccountDownloadCount;
	}

	public void setCompanyAccountDownloadCount(Integer companyAccountDownloadCount) {
		this.companyAccountDownloadCount = companyAccountDownloadCount;
	}

	@Column(name = "companyAccount_postResidueCouture")

	public Integer getCompanyAccountPostResidueCouture() {
		return this.companyAccountPostResidueCouture;
	}

	public void setCompanyAccountPostResidueCouture(Integer companyAccountPostResidueCouture) {
		this.companyAccountPostResidueCouture = companyAccountPostResidueCouture;
	}

	@Column(name = "companyAccount_postCouture")

	public Integer getCompanyAccountPostCouture() {
		return this.companyAccountPostCouture;
	}

	public void setCompanyAccountPostCouture(Integer companyAccountPostCouture) {
		this.companyAccountPostCouture = companyAccountPostCouture;
	}

	@Column(name = "companyAccount_beginTime", length = 19)

	public Timestamp getCompanyAccountBeginTime() {
		return this.companyAccountBeginTime;
	}

	public void setCompanyAccountBeginTime(Timestamp companyAccountBeginTime) {
		this.companyAccountBeginTime = companyAccountBeginTime;
	}

	@Column(name = "companyAccount_endTime", length = 19)

	public Timestamp getCompanyAccountEndTime() {
		return this.companyAccountEndTime;
	}

	public void setCompanyAccountEndTime(Timestamp companyAccountEndTime) {
		this.companyAccountEndTime = companyAccountEndTime;
	}

}